from Simulinux.diagram import MODE_NORMAL, MODE_REGION, MODE_MOVE
from Simulinux.diagram import MODE_PIN, MODE_CONNECTION
from Simulinux.EventHandler.abstract_mode_handler import AbstractModeHandler

class ModeConnectionEventHandler(AbstractModeHandler):
    pass
    '''elif self.__diagram.mode == MODE_PIN: #create or finalize net
        if not self.__new_net:
            self.__new_net = Net()
            self.__new_net.leftPin = self.__pin[0]
            self.__diagram.mode = MODE_CONNECTION
        else:
            self.__new_net.rightPin = self.__pin[0]
    elif self.__diagram.mode == MODE_CONNECTION: #create segments
        self.__new_net = Net()
        
        #@todo: If it isn't the same point, register next point
        pass'''